package com.system.api.rbac.entity.po;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.yang.database.orm.entity.BaseModel;


/**
 * 用户
 * @author: lslands
 * @version: 1.0
 * @create: 2024/6/2
 * @description:
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserAccount extends BaseModel {

    /**
     * 昵称
     * @mock 管理员
     */
    private String nickname;
    /**
     * 账户
     * @mock admin
     * @required
     */
    private String username;
    /**
     * 密码(加密)
     * @mock 123456
     * @required
     */
    private String password;
    /**
     * 电话号
     * @mock 15928310871
     * @required
     */
    private String phone;
    /**
     * 邮箱
     * @mock 1430536478@qq.com
     */
    private String email;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 企业ID
     * mock 1
     * @required
     */
    private Long companyId;

    public SysUserAccount(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public SysUserAccount(Long id, Integer enabled, Integer revision) {
        super(id, enabled, revision);
    }
}